package cn.kgm.makeGod.condition;

import cn.kgm.makeGod.Character;
import cn.kgm.makeGod.LocationType;

/**
 * @Version 1.8
 * @Author: Kappi
 * @Date: 2025-9-11 11:25
 * @Description: cn.kgm.makeGod.condition.LocationCondition
 */
public class LocationCondition implements Condition {

    private LocationType locationType;

    public LocationCondition() {
    }

    public LocationCondition(LocationType locationType) {
        this.locationType = locationType;
    }

    @Override
    public boolean check(Character actor, Character target, WorldState world) {
        return actor.getCurrentLocation().getType() == locationType;
    }

}
